﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Search;

namespace Konekcija.Core.Reporting.Mappings.Search
{
    public class AgentMap : ClassMap<Agent>
    {
        public AgentMap()
        {
            Schema("search");
            Table("Agents");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.CategoryId).Nullable();
            Map(x => x.SearchTerm).Nullable();
            Map(x => x.WebsiteId).Nullable();
            Map(x => x.RegionId).Nullable();
            Map(x => x.CurrencyId).Nullable();
            Map(x => x.FromPrice).Nullable();
            Map(x => x.ToPrice).Nullable();
            Map(x => x.ItemDirection).Nullable();
            Map(x => x.ItemCondition).Nullable();
            Map(x => x.ItemType).Nullable();
            Map(x => x.ItemStatus).Nullable();
            Map(x => x.DateCreated).Nullable();
            Map(x => x.DateChanged).Nullable();
            Map(x => x.ByUserId).Nullable();

        }
    }
}
